<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: /HElib/include/helib/Context.h File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_d0c4ae63660968bf6b1c77a1e8aecf95.html">helib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">Context.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Keeps the parameters of an instance of the cryptosystem.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="_p_algebra_8h_source.html">helib/PAlgebra.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_c_modulus_8h_source.html">helib/CModulus.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_index_set_8h_source.html">helib/IndexSet.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="recryption_8h_source.html">helib/recryption.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="prime_chain_8h_source.html">helib/primeChain.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="powerful_8h_source.html">helib/powerful.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="api_attributes_8h_source.html">helib/apiAttributes.h</a>&gt;</code><br />
<code>#include &lt;NTL/Lazy.h&gt;</code><br />
</div>
<p><a href="_context_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_context.html">helib::Context</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maintaining the parameters.  <a href="classhelib_1_1_context.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacehelib"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html">helib</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:abbf9f5de032fca82af2ce94a97041bc6"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#abbf9f5de032fca82af2ce94a97041bc6">helib::FindM</a> (long k, long nBits, long c, long p, long d, long s, long chosen_m, bool <a class="el" href="_test___ptr_vector_8cpp.html#ab3f078684998b83967d507d0f453f454">verbose</a>=false)</td></tr>
<tr class="memdesc:abbf9f5de032fca82af2ce94a97041bc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns smallest parameter m satisfying various constraints:  <a href="namespacehelib.html#abbf9f5de032fca82af2ce94a97041bc6">More...</a><br /></td></tr>
<tr class="separator:abbf9f5de032fca82af2ce94a97041bc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8425881cdaaef9fade4dd57cc3cf5e8b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a8425881cdaaef9fade4dd57cc3cf5e8b">helib::writeContextBase</a> (std::ostream &amp;s, const Context &amp;context)</td></tr>
<tr class="memdesc:a8425881cdaaef9fade4dd57cc3cf5e8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">write [m p r gens ords] data  <a href="namespacehelib.html#a8425881cdaaef9fade4dd57cc3cf5e8b">More...</a><br /></td></tr>
<tr class="separator:a8425881cdaaef9fade4dd57cc3cf5e8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7b88eb3fd0aa4821cb6700fa65ecee2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ab7b88eb3fd0aa4821cb6700fa65ecee2">helib::readContextBase</a> (std::istream &amp;s, unsigned long &amp;m, unsigned long &amp;p, unsigned long &amp;r, std::vector&lt; long &gt; &amp;gens, std::vector&lt; long &gt; &amp;ords)</td></tr>
<tr class="memdesc:ab7b88eb3fd0aa4821cb6700fa65ecee2"><td class="mdescLeft">&#160;</td><td class="mdescRight">read [m p r gens ords] data, needed to construct context  <a href="namespacehelib.html#ab7b88eb3fd0aa4821cb6700fa65ecee2">More...</a><br /></td></tr>
<tr class="separator:ab7b88eb3fd0aa4821cb6700fa65ecee2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcfd34a416649164e3b01c4af1c8654e"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; Context &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#adcfd34a416649164e3b01c4af1c8654e">helib::buildContextFromAscii</a> (std::istream &amp;str)</td></tr>
<tr class="separator:adcfd34a416649164e3b01c4af1c8654e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3167b996c8b02f9f390d1d9957693b9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a3167b996c8b02f9f390d1d9957693b9f">helib::writeContextBaseBinary</a> (std::ostream &amp;str, const Context &amp;context)</td></tr>
<tr class="memdesc:a3167b996c8b02f9f390d1d9957693b9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">write [m p r gens ords] data  <a href="namespacehelib.html#a3167b996c8b02f9f390d1d9957693b9f">More...</a><br /></td></tr>
<tr class="separator:a3167b996c8b02f9f390d1d9957693b9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f9bc09cb4de5422bb79e9c4d67db80a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a1f9bc09cb4de5422bb79e9c4d67db80a">helib::writeContextBinary</a> (std::ostream &amp;str, const Context &amp;context)</td></tr>
<tr class="separator:a1f9bc09cb4de5422bb79e9c4d67db80a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb88b203e4e9aeaf5fe329e7cc276aad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#acb88b203e4e9aeaf5fe329e7cc276aad">helib::readContextBaseBinary</a> (std::istream &amp;s, unsigned long &amp;m, unsigned long &amp;p, unsigned long &amp;r, std::vector&lt; long &gt; &amp;gens, std::vector&lt; long &gt; &amp;ords)</td></tr>
<tr class="memdesc:acb88b203e4e9aeaf5fe329e7cc276aad"><td class="mdescLeft">&#160;</td><td class="mdescRight">read [m p r gens ords] data, needed to construct context  <a href="namespacehelib.html#acb88b203e4e9aeaf5fe329e7cc276aad">More...</a><br /></td></tr>
<tr class="separator:acb88b203e4e9aeaf5fe329e7cc276aad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4036006b2d0e378ce2aa90a5332a8d73"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; Context &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a4036006b2d0e378ce2aa90a5332a8d73">helib::buildContextFromBinary</a> (std::istream &amp;str)</td></tr>
<tr class="separator:a4036006b2d0e378ce2aa90a5332a8d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a07fadbe58c0bf5c4be26d9bb245755"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a4a07fadbe58c0bf5c4be26d9bb245755">helib::readContextBinary</a> (std::istream &amp;str, Context &amp;context)</td></tr>
<tr class="separator:a4a07fadbe58c0bf5c4be26d9bb245755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af68cc874f7e017cd4c35d1ea52739c0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#af68cc874f7e017cd4c35d1ea52739c0f">helib::buildModChain</a> (Context &amp;context, long nBits, long nDgts=3, bool willBeBootstrappable=false, long skHwt=0, long resolution=3, long bitsInSpecialPrimes=0)</td></tr>
<tr class="separator:af68cc874f7e017cd4c35d1ea52739c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcdd1f22927d282e9bbce15a18f5f3ad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#abcdd1f22927d282e9bbce15a18f5f3ad">helib::endBuildModChain</a> (Context &amp;context)</td></tr>
<tr class="separator:abcdd1f22927d282e9bbce15a18f5f3ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a3ba322251033959f95b296f34745836e"><td class="memItemLeft" align="right" valign="top">Context *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a3ba322251033959f95b296f34745836e">helib::activeContext</a> = nullptr</td></tr>
<tr class="separator:a3ba322251033959f95b296f34745836e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Keeps the parameters of an instance of the cryptosystem. </p>
</div></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
